package com.web.dao.user;

import com.web.bean.user.User;

import java.io.Serializable;
import java.util.List;

/**
 * @autor Chen
 * 用户注册 @ 作者注册
 * @create 2021--25-9:00
 * @desc
 */
public interface  UserDao {
    User selectUserByPhone(String phone) throws Exception;

    List<User> selectUsers() throws Exception;
    void addUser(User user) throws Exception;
    void addWriter(User user) throws Exception;
    void updateUser(User user) throws Exception;
    //注销
    void deleteUser(String uid) throws Exception;
    void updateWriter(User user) throws Exception;
    User selectWriterByPhone(String phone) throws Exception;
}
